<?php

namespace Admin\Controller;

use Zend\View\Model\ViewModel;
use Utility\Session\InspectSessionController;
use Member\Model\MemberModel;

class IndexController extends InspectSessionController {

    public function indexAction() {
        $this->layout()->class = 'admin';
        $MemberModel = new MemberModel();
        $where = array('id' => 1);
        $result = $MemberModel->SelectByCond($where)->toArray();
        $System = array(
            "php_uname" => php_uname('s'),
            "php_sapi_name" => php_sapi_name(),
            "PHP_VERSION" => PHP_VERSION,
            "IP" => GetHostByName($_SERVER['SERVER_NAME']),
            "PROCESSOR_IDENTIFIER" => $_SERVER['PROCESSOR_IDENTIFIER'],
        );
        $view = new ViewModel(array("result" => $result[0], "system" => $System));
        return $view;
    }

    private function DiscBig() {

    }

}
